package com.aspose.cells;

import java.util.Collection;

class zbvr extends CollectionBase {
   public void a(zbvr var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Collection)var1.a);
   }

   public int a(zbvp var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.getCount() - 1;
   }

   public int a(int var1, Object var2) {
      zbvp var3 = new zbvp();
      var3.a = var1;
      var3.b = var2;
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var3);
      return this.getCount() - 1;
   }

   public zbvp a(int var1) {
      return (zbvp)this.a.get(var1);
   }

   boolean a(WorksheetCollection var1, zakp var2) {
      switch(var2.b()) {
      case 2:
         return !var1.m().b(var2.b(var1.n()));
      case 4:
         return true;
      default:
         return false;
      }
   }

   void a(Style var1) {
      WorksheetCollection var2 = var1.e();
      if (var1.isModified(27) && var1.getIndentLevel() > 15) {
         this.a(15, var1.getIndentLevel());
      }

      if (var1.isModified(16) && this.a(var2, var1.getFont().b)) {
         this.a(13, var1.getFont().b);
      }

      if (var1.isGradient()) {
         GradientFill var3 = new GradientFill((Object)null, (Workbook)null);
         var3.a(3, var1.b, 0.0D, var1.a, var1.v(), var1.w());
         this.a(6, var3);
      } else if (var1.isModified(32)) {
         if (var1.isModified(34) && this.a(var2, var1.b)) {
            this.a(4, var1.b);
         }

         if (var1.isModified(35) && this.a(var2, var1.a)) {
            this.a(5, var1.a);
         }
      }

      if (var1.isModified(1)) {
         if (var1.isModified(2) && this.a(var2, var1.getBorders().getByBorderType(1).a)) {
            this.a(9, var1.getBorders().getByBorderType(1).a);
         }

         if (var1.isModified(3) && this.a(var2, var1.getBorders().getByBorderType(2).a)) {
            this.a(10, var1.getBorders().getByBorderType(2).a);
         }

         if (var1.isModified(4) && this.a(var2, var1.getBorders().getByBorderType(4).a)) {
            this.a(7, var1.getBorders().getByBorderType(4).a);
         }

         if (var1.isModified(5) && this.a(var2, var1.getBorders().getByBorderType(8).a)) {
            this.a(8, var1.getBorders().getByBorderType(8).a);
         }

         if (var1.isModified(8) && this.a(var2, var1.getBorders().e())) {
            this.a(11, var1.getBorders().e());
         }
      }

   }

   boolean b(Style var1) {
      boolean var2 = false;

      for(int var3 = 0; var3 < this.getCount(); ++var3) {
         zbvp var4 = this.a(var3);
         switch(var4.a) {
         case 4:
            var1.b = (zakp)var4.b;
            break;
         case 5:
            var1.a = (zakp)var4.b;
            break;
         case 6:
            GradientFill var5 = (GradientFill)var4.b;
            var5.a(var1, var1.e().n());
            break;
         case 7:
            var1.getBorders().getByBorderType(4).a = (zakp)var4.b;
            break;
         case 8:
            var1.getBorders().getByBorderType(8).a = (zakp)var4.b;
            break;
         case 9:
            var1.getBorders().getByBorderType(1).a = (zakp)var4.b;
            break;
         case 10:
            var1.getBorders().getByBorderType(2).a = (zakp)var4.b;
            break;
         case 11:
            var1.getBorders().getByBorderType(16).a = (zakp)var4.b;
            var1.getBorders().getByBorderType(32).a = (zakp)var4.b;
         case 12:
         default:
            break;
         case 13:
            var2 = true;
            var1.getFont().b = (zakp)var4.b;
            break;
         case 14:
            var2 = true;
            switch((Integer)var4.b) {
            case 1:
               var1.getFont().e(1);
               continue;
            case 2:
               var1.getFont().e(2);
            default:
               continue;
            }
         case 15:
            var1.setIndentLevel((Short)var4.b);
         }
      }

      return var2;
   }

   // $FF: synthetic method
   public Object get(int x0) {
      return this.a(x0);
   }
}
